package Personnel;

import Operation.*;

import java.util.Scanner;

public class Teacher extends Personnel {

    public Teacher(String name) {
        super(name);
        this.ioperations = new Ioperation[]{new ExitOperation(),
                new ShowClassOperation(),
                new AddOperation(),
                new DelOperation(),
                new FindOperation(),
                new ShowAllOperation()
        };
    }

    public int menu() {
        System.out.println("教师菜单-》");
        System.out.println("================================");
        System.out.println("1.班级信息");
        System.out.println("2.新增学生");
        System.out.println("3.删除学生");
        System.out.println("4.查找学生");
        System.out.println("5.展示学生名单");
        System.out.println("0.退出系统");
        System.out.println("================================");
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入的操作-》");
        int choice = scanner.nextInt();
        return choice;
    }
}
